s = input()
str = ""
for i in s:
    if i.isdigit():
        str += i
    else:
        if str:
            print(str)
        str = ""